detached metadata: Put these in transaction
authorAlexander Larsson <alexl@redhat.com>
Fri, 21 Oct 2016 10:10:30 +0000 (12:10 +0200)
committerAtomic Bot <atomic-devel@projectatomic.io>
Fri, 21 Oct 2016 10:50:41 +0000 (10:50 +0000)
commit67bddf76f7ed629624e409b824849f6e8dc503a3
tree37b8d6d11fcf1ae024ad1fadad104339599e4700
parentd43c1216759564e974782695ecdade1fa827c343
detached metadata: Put these in transaction

If there is a transaction active, then we put writes to detached
metadata into the staging dir, and when reading it we look there
first. This allows transactions to be aborted half-way without
writing the detached metadata into the repository (possibly
overwriting any old metadata from there).

This fixes https://github.com/ostreedev/ostree/issues/526

Closes: #539
Approved by: giuseppe
src/libostree/ostree-repo-commit.c